Skip to content

Conversation

ericmort
Copy link
Contributor

@ericmort ericmort commented Oct 2, 2025

BREAKING CHANGE: GetDefaultCodeSecurityConfigurations now returns CodeSecurityConfigurationWithDefaultForNewRepos instead of CodeSecurityConfiguration.

Modifies the return type of GetDefaultCodeSecurityConfigurations to match the response schema of the API.

Fixes: #3744.

"name":"config2",
"private_vulnerability_reporting": "enabled"
}]`)
"default_for_new_repos": "private",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch :) fixed in latest commit

Copy link

codecov bot commented Oct 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.11%. Comparing base (46f1bf2) to head (d4efcfe).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3747   +/-   ##
=======================================
  Coverage   91.11%   91.11%           
=======================================
  Files         187      187           
  Lines       16702    16702           
=======================================
  Hits        15218    15218           
  Misses       1296     1296           
  Partials      188      188           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis changed the title fix return type of GetDefaultCodeSecurityConfigurations fix!: Change return type of GetDefaultCodeSecurityConfigurations Oct 2, 2025
@gmlewis gmlewis added the Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). label Oct 2, 2025
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ericmort and @zyfy29!
LGTM.
Merging.

@gmlewis gmlewis merged commit 83697c8 into google:master Oct 2, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetDefaultCodeSecurityConfigurations returns []*CodeSecurityConfiguration but should return []*CodeSecurityConfigurationWithDefaultForNewRepos
4 participants